package com.exam.itempool.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import com.exam.role.model.Teacher;

/**
 * Exam entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Exam implements java.io.Serializable
{

	// Fields

	private Integer id;
	private Paper paper;
	private Teacher teacher;
	private Date createtime;
	private String flag;
	private String name;
	private Date begintime;
	private Date endtime;
	private Integer timelimit;
	private String remarks;
	private Set grades = new HashSet(0);
	private Set examHalls = new HashSet(0);
	private Set examinees = new HashSet(0);

	// Constructors

	/** default constructor */
	public Exam()
	{
	}

	/** full constructor */
	public Exam(Paper paper, Teacher teacher, Date createtime, String flag, String name, Date begintime, Date endtime, Integer timelimit, String remarks, Set grades, Set examHalls, Set examinees)
	{
		this.paper = paper;
		this.teacher = teacher;
		this.createtime = createtime;
		this.flag = flag;
		this.name = name;
		this.begintime = begintime;
		this.endtime = endtime;
		this.timelimit = timelimit;
		this.remarks = remarks;
		this.grades = grades;
		this.examHalls = examHalls;
		this.examinees = examinees;
	}

	// Property accessors

	public Integer getId()
	{
		return this.id;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	public Paper getPaper()
	{
		return this.paper;
	}

	public void setPaper(Paper paper)
	{
		this.paper = paper;
	}

	public Teacher getTeacher()
	{
		return this.teacher;
	}

	public void setTeacher(Teacher teacher)
	{
		this.teacher = teacher;
	}

	public Date getCreatetime()
	{
		return this.createtime;
	}

	public void setCreatetime(Date createtime)
	{
		this.createtime = createtime;
	}

	public String getFlag()
	{
		return this.flag;
	}

	public void setFlag(String flag)
	{
		this.flag = flag;
	}

	public String getName()
	{
		return this.name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public Date getBegintime()
	{
		return this.begintime;
	}

	public void setBegintime(Date begintime)
	{
		this.begintime = begintime;
	}

	public Date getEndtime()
	{
		return this.endtime;
	}

	public void setEndtime(Date endtime)
	{
		this.endtime = endtime;
	}

	public Integer getTimelimit()
	{
		return this.timelimit;
	}

	public void setTimelimit(Integer timelimit)
	{
		this.timelimit = timelimit;
	}

	public String getRemarks()
	{
		return this.remarks;
	}

	public void setRemarks(String remarks)
	{
		this.remarks = remarks;
	}

	public Set getGrades()
	{
		return this.grades;
	}

	public void setGrades(Set grades)
	{
		this.grades = grades;
	}

	public Set getExamHalls()
	{
		return this.examHalls;
	}

	public void setExamHalls(Set examHalls)
	{
		this.examHalls = examHalls;
	}

	public Set getExaminees()
	{
		return this.examinees;
	}

	public void setExaminees(Set examinees)
	{
		this.examinees = examinees;
	}

}